﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Twitterizer;
using BigDataFramework.Repositories;
using BigData.DataContracts.Objects.BigData;

namespace BigData.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Timeline(string id = "")
        {
            MongoDBRepository repo = new MongoDBRepository();
            BigDataUser gilligan = repo.Read<BigDataUser>().Single(u => u.FirstName.Contains("Gil"));

            id = gilligan._id;

            return View(model: id);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
